package cn.iocoder.yudao.framework.base.common.mysql.sequence;


public class MysqlSequence {


    private SeqService seqService;
    private String seqName;


    public MysqlSequence(SeqService seqService, String seqName) {
        this.seqName = seqName;
        this.seqService = seqService;
    }

    public String getName() {
        return seqName;
    }


    public Long currVal() {
        return seqService.currVal(seqName);
    }


    public Long nextVal() {
        return seqService.nextVal(seqName);
    }

}
